package ms.shop.entity;

import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Project Name: ms
 * File Name: Banner
 * Package Name: ms.shop.entity
 * Date: 2018/5/30  16:28
 * Copyright (c) 2018, tianyul All Rights Reserved.
 */
@Table(name = "t_banner")
@Data
public class Banner implements Serializable{
    /**
     * 主键id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String name;

    private String img;

    private String detailImg;

    /**
     * 1 首页banner  2 跳转外网  3 分类banner
     */
    private Integer type;

    /**
     * type是3  分类id  type是2  外网连接
     */
    private String url;

    private Integer status;

    private Long createTime;

    private Long updateTime;

}
